package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/10/10 16:26
 * @desrcption: 表单标题
 */
@Getter
@Setter
@ToString
public class FormTitlePoJo implements Serializable {

    private static final long serialVersionUID = 7116179947537585277L;

    private Long id;

    private Integer fieldType;
    /**
     * 字段标识
     */
    private String attr;
    /**
     * 手动输入字符
     */
    private String content;

    /**
     * 字段名称
     */
    private String attrName;

    /**
     * attr或者subAttr对应数据的值
     */
    private List<Object> value;

    /**
     * 子表单字段标识
     */
    private String subAttr;

    public FormTitlePoJo(){
        attr = "";
        content = "";
        attrName = "";
        subAttr = "";
        value = new ArrayList<>();
    }

    public FormTitlePoJo(String attr, String content, String attrName, List<Object> value, String subAttr) {
        this.attr = attr;
        this.content = content;
        this.attrName = attrName;
        this.value = value;
        this.subAttr = subAttr;
    }
}
